const loginapi = (data) => axiospost('login', data); //账号密码登录
const getuser = (data) => axiospost('getuserinfo', data); //从token获取用户信息
const updateuserapi = (data) => axiospost('updateprofile', data, 'PUT'); //前台用户修改信息
const qdgetconfig = (data) => axiospost('qdgetconfig', data); //前端获取配置
const addpoints = (data) => axiospost('addpoints', data); //签到领积分
const index = (data) => axiospost('index', data); //前台获取项目列表
const checkupdate = (data) => axiospost('admin/checkupdate', data); //检查更新
const updatefiles = (data) => axiospost('admin/updatefiles', data); //确定更新
const restart = (data) => axiospost('admin/restart', data); //重启系统
const permissions = (data) => axiospost('admin/permissions', data); //获取权限
const savepermissions = (data) => axiospost('admin/savepermissions', data); //保存权限
const plcfapi = (data) => axiospost('admin/plcfapi', data); //批量查分
const cleanapi = (data) => axiospost('admin/cleanapi', data); //系统清理无用表
const handleapproval = (data) => axiospost('admin/handleapproval', data); //审核
const gettodoList = (data) => axiospost('admin/gettodoList', data); //获取流程列表
const getmylist = (data) => axiospost('getmylist', data);   //获取我的填报记录
const getProcessdetail = (data) => axiospost('admin/getProcessdetail', data); //查看流程详情
const checkApply = (data) => axiospost('admin/checkApply', data); //是否存在进行中的流程申请
const getProcessDetail = (data) => axiospost('admin/getProcessDetail', data); //后台查看流程详情
const getmessages = (data) => axiospost('getmessages', data); //获取站内消息列表
const markmessageread = (data) => axiospost('markmessageread', data); //标记消息已读
const gethometemplate = (data) => axiospost('gethometemplate', data); //获取首页模板
const savehometemplate = (data) => axiospost('admin/savehometemplate', data); //创建或更新首页模板
const maptoaddress = (data) => axiospost('maptoaddress', data); //经纬度转换为地址名

const filelist = (data) => axiospost('admin/filelist', data);           //获取文件列表
const previewfile = (data) => axiospost('previewfile', data);           //预览文件
const directory = (data) => axiospost('admin/directory', data);         //创建文件夹
const createfile = (data) => axiospost('admin/createfile', data);       //新建文件
const savetxt = (data) => axiospost('admin/savetxt', data);             //保存文件
const delfile = (data) => axiospost('admin/delfile', data, 'DELETE');   //删除文件
const rename = (data) => axiospost('admin/rename', data);               //重命名文件
const filemove = (data) => axiospost('admin/move', data);               //移动文件
const filecopy = (data) => axiospost('admin/copy', data);               //复制文件
const filezip = (data) => axiospost('admin/zip', data);                 //压缩文件
const unzip = (data) => axiospost('admin/unzip', data);                 //解压文件
const share = (data) => axiospost('share', data);                       //分享文件
const dirfilelist = (data) => axiospost('admin/dirfilelist', data);     //获取目录列表

const getbgsxlistapi = (data) => axiospost('admin/getbgsxlist', data); //分页获取项目列表
const getbgsxapi = (data) => axiospost('getbgsx', data); //根据id获取项目参数
const cxjgapi = (data) => axiospost('cxjg', data); //前台查询结果
const dblc = (data) => axiospost('dblc', data); //前台多表查询结果
const lockeapi = (data) => axiospost('locke', data); //锁定
const unlockeapi = (data) => axiospost('admin/unlocke', data); //解锁
const qdeditrow = (data) => axiospost('qdeditrow', data); //前台添加或修改保存行
const gettemplatelist = (data) => axiospost('admin/gettemplatelist', data); //获取页面模板列表
const getpictemplist = (data) => axiospost('admin/getpictemplist', data); //获取证书模板列表

const GetAvailableDates = (data) => axiospost('GetAvailableDates', data); //获取可预约日期
const GetTimeSlots = (data) => axiospost('GetTimeSlots', data); //获取该日期的可用时段

const addbgsxapi = (data) => axiospost('admin/addbgsx', data); //创建查询项目
const updatebgsx = (data) => axiospost('admin/updatebgsx', data); //更新查询项目
const delbgsxapi = (data) => axiospost('admin/delbgsx', data); //删除查询项目

const tablepost = (data) => axiospost('admin/tablepost', data); //批量插入数据
const getformid = (data) => axiospost('getformid', data); //从项目bm和行id获取数据
const addtablerow = (data) => axiospost('admin/addoreditrow', data); //表格添加一行
const updatetablerow = (data) => axiospost('admin/addoreditrow', data); //表格更新一行
const deltablerow = (data) => axiospost('admin/delrow', data); //表格删除一行
const getldoptions = (data) => axiospost('getldoptions', data); //获取联动下拉选项

const gettabledata = (data) => axiospost('admin/gettable', data); //获取表格数据
const dcsjapi = (data) => axiospost('admin/dcsj', data); //导出数据
const getjdapi = (data) => axiospost('admin/getjd', data); //获取导出进度
const sczsapi = (data) => axiospost('admin/sczs', data); //批量生成证书
const scwordapi = (data) => axiospost('admin/plscword', data); //批量生成word
const qksjapi = (data) => axiospost(`admin/qksj/${data.tablename}`, data); //清空数据

const addpictemp = (data) => axiospost('admin/addpictemp', data); //添加证书模板
const updatepictemp = (data) => axiospost(`admin/updatepictemp/${data.id}`, data, 'PUT'); //更新证书模板
const delzsmbapi = (data) => axiospost(`admin/deltepictemp/${data.id}`, data, 'DELETE'); //删除证书模板

const getformusers = (data) => axiospost('admin/getformusers', data); //获取项目管理员和填报员id=>name列表
const getuserlist = (data) => axiospost('admin/getuserlist', data); //获取用户列表
const adduser = (data) => axiospost('admin/adduser', data); //添加用户
const updateuser = (data) => axiospost('admin/updateuser', data); //更新用户
const deluserapi = (data) => axiospost('admin/deluser', data); //删除用户
const importuser = (data) => axiospost('admin/importuser', data); //批量导入用户

const qtgetbloglist = (data) => axiospost('getbloglist', data); //前台获取文章列表
const qtgetblog = (data) => axiospost(`getblog/${data.id}`, data); //前台根据id获取文章

const getbloglist = (data) => axiospost('getbloglist', data); //后台获取文章列表
const addblog = (data) => axiospost('admin/addblog', data); //添加文章
const updateblog = (data) => axiospost(`admin/updateblog/${data.ID}`, data, 'PUT'); //更新文章
const blogformai = (data) => axiospost(`admin/blogformai`, data); //ai生成文章
const parseVideoUrlApi = (data) => axiospost(`parseVideoUrl`, data); //视频采集
const delblogapi = (data) => axiospost('admin/delblogapi', data); //删除文章

const getconfigapi = (data) => axiospost('admin/getconfig', data); //获取配置
const saveconfigapi = (data) => axiospost('admin/saveconfig', data); //保存配置
const savemenus = (data) => axiospost('admin/savemenus', data); //保存菜单

const getimglist = (data) => axiospost('admin/getimglist', data); //获取弹窗选择图片列表
const deleteimg = (data) => axiospost(`admin/deleteimg/${data.id}`, data, 'DELETE'); //删除图片

const getwymblist = (data) => axiospost('admin/gettemplatelist', data); //获取网页模板
const getwymbforid = (data) => axiospost(`gettemplate/${data.id}`, data); //获取指定id网页模板
const addwymb = (data) => axiospost('admin/addtemplate', data); //添加网页模板
const updatewymb = (data) => axiospost(`admin/updatetemplate/${data.id}`, data, 'PUT'); //更新网页模板
const deletewymb = (data) => axiospost(`admin/deleteimg/${data.id}`, data, 'DELETE'); //删除网页模板

const getproducts = (data) => axiospost('getproducts', data); //前台获取商品列表-前后台共用
const getproductsadmin = (data) => axiospost('getproductsadmin', data); //后台获取商品列表
const getproductdetailhome = (data) => axiospost(`getproductdetailhome/${data.id}`, data); //前台根据id获取商品-不需要登录
const getproductdetail = (data) => axiospost(`getproductdetail/${data.id}`, data); //前台根据id获取商品-需要登录
const purchaseproduct = (data) => axiospost(`purchaseproduct/${data.id}`, data); //购买商品
const getpurchasehistory = (data) => axiospost('getpurchasehistory', data); //分页获取用户购买记录
const getpurchases = (data) => axiospost('admin/getpurchases', data); //后台查看购买记录
const addproducts = (data) => axiospost('admin/addproducts', data); //创建商品
const updateproducts = (data) => axiospost(`admin/updateproducts/${data.id}`, data, 'PUT'); //更新商品
const delproducts = (data) => axiospost(`admin/delproducts/${data.id}`, data, 'DELETE'); //删除商品
